package com.egoint.service;

import com.egoint.mapper.MemberMapper;
import com.egoint.model.Member;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/8/25 0025.
 */
@Service
public class MemberService {

    @Autowired
    private MemberMapper memberMapper;

    public Member getMemberInfo(int id) {
        Member member = memberMapper.findUserInfo(id);
        return member;
    }

    public ArrayList<Member> getMembers() {
        return memberMapper.getMembers();
    }
}
